package com.cx330;

public class Example35 {
    public static void main(String[] args) {
        Father35 father = new Son35();
        // 无论子类是否有签名相同的静态方法，都只调用父类声明的静态方法，因为静态方法与实例对象无关，只看father编译时声明的类型。
        father.method();
    }
}

class Father35 {
    public static void method() {
        System.out.println("Father.method");
    }
}

class Son35 extends Father35 {
    public static void method() {
        System.out.println("Son.method");
    }
}
